﻿//-----------------------------------------------------------------
//
// @(#)$Id: HandMatchOrder.aspx.cs,v 1.0 2013/12/13 17:55:24 lichunhua Exp $
// @(#)$Author: lichunhua  $
// @(#)$Date: 2013/12/13 17:55:24 $
// @(#)$Description:
//
//
//
//                 All Rights Reserved.
//-----------------------------------------------------------------
using System;
using System.Data;
using System.Web.UI.WebControls;
using ebay.Dal.CenterDB_EbayTableAdapters;

public partial class UI_Orders_HandMatchOrder : System.Web.UI.Page
{
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        T_EbayAccountTableAdapter ebayAccountAdapter = new T_EbayAccountTableAdapter();
        DataTable table = ebayAccountAdapter.GetData();
        ddloebayUserId.DataSource = table;
        ddloebayUserId.DataTextField = "EbayUserId";
        ddloebayUserId.DataValueField = "EbayUserId";
        ddloebayUserId.DataBind();
        ddloebayUserId.Items.Insert(0, new ListItem("《--请选择--》", " "));

        ddlpebayUserId.DataSource = table;
        ddlpebayUserId.DataTextField = "EbayUserId";
        ddlpebayUserId.DataValueField = "EbayUserId";
        ddlpebayUserId.DataBind();
        ddlpebayUserId.Items.Insert(0, new ListItem("《--请选择--》", " "));

        ddlSellingStatus.Items.Insert(0, new ListItem("《--请选择--》", " "));
        ddlSellingStatus.Items.Insert(1, new ListItem("新导入", "1"));
        ddlSellingStatus.Items.Insert(2, new ListItem("已匹配", "2"));
        ddlSellingStatus.DataBind();

        ddlStatusId.Items.Insert(0, new ListItem("《--请选择--》", " "));
        ddlStatusId.Items.Insert(1, new ListItem("新导入", "1"));
        ddlStatusId.Items.Insert(2, new ListItem("已匹配", "2"));
        ddlStatusId.Items.Insert(3, new ListItem("取消匹配", "3"));
        ddlStatusId.DataBind();

    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WebUtility.CheckRight();
        if (!IsPostBack)
        {
            obeginDate.Value = DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00";
            oendDate.Value = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59";
            pbeginDate.Value = DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00";
            pendDate.Value = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59";
        }

    }
}
